<template>
  <div class="aaa">
    我是子组件aaaaaaaaaa
    <button @click="toBmsg">发信息给bbb</button>
  </div>
</template>
<script>
export default {
  methods: {
    toBmsg() {
      this.$bus.$emit('atob', Math.random() * 999)
    }
  }
}
</script>
<style lang="scss" scoped>
.aaa {
  width: 300px;
  height: 300px;
  border: 5px solid red;
}
</style>
